#include <iostream>
#include "httpserver.hpp"
#include <memory>

void Usage(const char* proc)
{
    std::cout << "\n\t Usage: ./httpserver.exe port \n" << std::endl;
}

int main(int argc, char* argv[])
{
    if(argc != 2)
    {
        Usage(argv[0]);
    }

    uint16_t server_port = std::stoi(argv[1]);

    std::unique_ptr<HttpServer> svr(new HttpServer(server_port));
    
    svr->start();
    
    return 0;
}